#!/bin/sh /etc/rc.common
# Copyright (C) 2006 OpenWrt.org

START=99

start()
{
    #restart default mode :auto
    uci set sqos.mode.mode="auto"
    uci commit
    #here can add speed test 
    cfgmode=`uci get sqos.mode.cfgmode`
    [ -f /usr/bin/sqos ] && /usr/bin/sqos start debug $cfgmode
}

stop()
{
    [ -f /usr/bin/sqos ] && /usr/bin/sqos stop
    uci set sqos.mode.mode="auto"
    uci commit
}



